﻿/*-----------------------------------------------------------------------
 * <copyright file="AccountRolesEditShowChild.xaml.cs" company="O-RID">
 *     Copyright (c)2010 O-RID Co.,Ltd.
 * </copyright>
 * <author>Zhang jun</author>
 * <summary>
 *             权限分配子窗体
 * 
 * 作成日：05/21/2010
 * </summary>
 *----------------------------------------------------------------------- 
 */

namespace Orid.Management.Statistics.OperatorUnitMangement.CompetenceSetPaeg.AccountRoles
{
    using System.Windows;
    using System.Windows.Controls;

    /// <summary>
    /// 权限分配子窗体
    /// AccountRolesEditShowChild
    /// </summary>
    public partial class AccountRolesEditShowChild : ChildWindow
    {
        /// <summary>
        /// 构造函数
        /// AccountRolesEditShowChild
        /// </summary>
        public AccountRolesEditShowChild()
        {
            InitializeComponent();

            // 引用主题
            ((App)Application.Current).SetTheme((Grid)LayoutRoot);
        }

        /// <summary>
        /// 确定按钮
        /// OKButton_Click
        /// </summary>
        /// <param name="sender">sender of object</param>
        /// <param name="e">e type of RoutedEventArgs</param>
        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
        }

        /// <summary>
        /// 取消按键
        /// CancelButton_Click
        /// </summary>
        /// <param name="sender">sender of object</param>
        /// <param name="e">e type of RoutedEventArgs</param>
        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }
    }
}

